-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re: #1290: Add sign and verify CLI commands #1292
Conversation
IMO sign and verify should be taking in files (and stdin as an option/default). |
f8262cd
to
ec38202
Compare
Thanks for the review, @Kubuxu!
|
ec38202
to
37b3ce8
Compare
@magik6k Implemented and tested the custom error, the error log is now set to |
- The command takes an address and a message (in hex) and prints out a signature of the msg
- The command takes an address, message, and signature, and returns true if the sig is valid
37b3ce8
to
fe8db29
Compare
Basically as in #1290. Usage is as follows:
lotus wallet sign <msg>
signs<msg>
with the wallet's default accountlotus wallet sign --from <addr> <msg>
signs withlotus waller verify <addr> <msg> <sigBytes>
prints "Valid" if is a valid signature of by , else prints "Invalid"